<script setup>
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { userstore } from '@/stores/userinfo'

const { updateUserInfo } = userstore()
updateUserInfo(info => {
  console.log('用户登录状态:', info)
})
</script>

<template>
  <ElConfigProvider :locale="zhCn">
    <RouterView />
  </ElConfigProvider>
</template>

<style>
body {
  margin: 0px;
  padding: 0px;
}
div,
p,
section,
main,
footer,
header,
nav {
  box-sizing: border-box;
}
</style>
